<form id="pagerForm" method="post" action="">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="g" value="{$group_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<div class="searchContent">
					<ul class="searchContent">
					<li style="width:220px;">关键字：<input type="text" name="keywords"  class="input-text" value="{$keywords}" class="textInput"/></li>
					<li style="width:80px;">
						<select name="sfield" class="combox">
					 <option value="all" {if $sfied=='all'}selected="selected"{/if}>全部</option>
						<option value="id" {if $wherefields == 'id'}selected="selected"{/if}>编号</option>
						<option value="userid" {if $wherefields == 'userid'}selected {/if}>用户ID</option>
						<option value="bzvu" {if $wherefields == 'bzvu'}selected {/if}>订单编号</option>
						</select>
						<input type="hidden" name="sfield_name" value="id,userid" />
					</li>
					<li style="width:80px;">
						<select name="subject" class="combox">
						<option value="">资金类型</option>
						<option value="CV" {if $where['subject'] == 'CV'} selected='selected' {/if} >CV</option>
						<option value="BV" {if $where['subject'] == 'BV'} selected='selected' {/if} >BV</option>
						<option value="PV" {if $where['subject'] == 'PV'} selected='selected' {/if} >PV</option>
						</select>
					</li>
					<li style="width:80px;">
						<select name="changtype" class="combox">
						<option value="">充值类型</option>
						<option value="ADMIN_ADD" {if $where['changtype'] == 'ADMIN_ADD'} selected='selected' {/if} >财务充值</option>
						<option value="TENPAY_ADD" {if $where['changtype'] == 'TENPAY_ADD'} selected='selected' {/if} >财付通</option>
						<option value="ALIPAY_ADD" {if $where['changtype'] == 'ALIPAY_ADD'} selected='selected' {/if} >支付宝</option>
						<option value="COUPON_CHANG" {if $where['changtype'] == 'COUPON_CHANG'} selected='selected' {/if} >PV换优惠券</option>
						<option value="ORDER_USE" {if $where['changtype'] == 'ORDER_USE'} selected='selected' {/if} >订单消费</option>
						<option value="ORDER_BAK" {if $where['changtype'] == 'ORDER_BAK'} selected='selected' {/if} >订单退款</option>
						</select>
					</li>
					<li style="width:160px;">
						<input name="starttime" class="date" type="text" value="{if $where['starttime']}{$where['starttime']}{/if}"/><a class="inputDateButton" href="javascript:;">选择</a>
					  </li>
					<li style="width:160px;">
						<input name="endtime" class="date" type="text" value="{$where['endtime']}"/><a class="inputDateButton" href="javascript:;">选择</a>
					</li>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					<div class="buttonActive"><div class="buttonContent"><button type="reset">清空</button></div></div>
					</ul>
					</div>
	</div>
	</form>
    </form>
    

</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li>
				总计：<php>foreach($sum as $key=>$s){</php>
				{$key}：<font color='red'>{$s}</font> &nbsp;&nbsp;
				<php>}</php>
			</li>
		</ul>
	</div>
	
    <div id="w_list_print">
        <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="93">
             <thead>
      		<tr>
				<th width="5%" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>编号</th>
				<th width="10%" orderField="userid" {if $orderField=='userid'}class="{$orderDirection}"{/if}>用户</th>
				<th width="10%" orderField="subject" {if $orderField=='subject'}class="{$orderDirection}"{/if}>类型</th>
				<th width="10%" orderField="value" {if $orderField=='value'}class="{$orderDirection}"{/if}>金额</th>
				<th width="15%" orderField="nowvalue" {if $orderField=='nowvalue'}class="{$orderDirection}"{/if}>余额</th>
				<th width="15%" orderField="changtype" {if $orderField=='changtype'}class="{$orderDirection}"{/if}>操作</th>
				<th width="15%" orderField="platform" {if $orderField=='platform'}class="{$orderDirection}"{/if}>平台</th>
				<th width="10%" align="center" orderField="ctime" {if $orderField=='ctime'}class="{$orderDirection}"{/if}>日期</th>
				<th width="10%" align="center">备注</th>

			</tr>
      	</thead>
            	<tbody>
            		
<volist name="list" id="vo">
      	<tr target="sid_user">
			<td height="50">{$vo['id']}{$vo.username}</td>
            <td><a href="{:U('Money/assets',array('keywords'=>$vo['userid'],'sfield'=>'userid'))}" target="navTab">{$vo['userid']}</a></td>
      		<td height="50">{$vo['subject']}</td>
			<td><font color="red">{$vo['value']/100}</font></td>
			<td>{$vo['nowvalue']/100}</td>    	
			<td>{if $vo['changtype']=='ADMIN_ADD'}转账充值 {elseif $vo['changtype']=='TENPAY_ADD'}在线充值 {elseif $vo['changtype']=='ORDER_USE'}订单消费{elseif $vo['changtype']=='ORDER_BAK'}订单退款{else}{$vo['changtype']}{/if}</td>
			<td>{$vo['platform']}</td>
			<td>{$vo['ctime']|date='Y-m-d H:i:s',###}</td>
			<td>{$vo['bzvu']}</td>
           
      	</tr>
		</volist>
		
		
      	</tbody>
        </table>
    </div>
<include file="Index:pages" />
</div>

